﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Models.Common
{
    public static class MQEventEnum
    {
        public const string MQServer_QueueName = "iot_serviceCenter";
        public const string MQDevice_gatewayServer_QueueName = "iot_gateway_";
        public const string MQDevice_gatewayUpdateServer_QueueName = "iot_gateway_upgrade_";
        public const string MQServer_RemoteClientQueueName = "iot_RemoteClient_";
        public const string MQServer_RemoteManageServerQueueName = "iot_RemoteManageServer";
        /// <summary>
        /// //要使用的exchange的名称
        /// </summary>
        public const string EXCHANGE_NAME = "my_exchange";
        /// <summary>
        /// //要使用的exchange的名称
        /// </summary>
        public const string EXCHANGE_TYPE = "topic";
        /// <summary>
        ///  "my_routing_key.#"; //exchange使用的routing-key
        /// </summary>
        public const string EXCHANGE_ROUTING_KEY = "my_routing_key.#";


        public const Int32 MQDevice_UpdateServer_QueueExpires = 24 * 60 * 60 * 1000;
        public const Int32 MQDevice_UpdateServer_QueueMessageExpires = 60 * 60 * 1000;
        /// <summary>
        /// 继电器状态
        /// </summary>
        public enum JiDianQI_Event_State : int
        {
            Normal = 2,
            Error = 3
        }


        public const string Event_State_OK = "ok";
        public const string Event_State_Error = "error";

        public const string Event_Sign = "error";
        /// <summary>
        /// 传感器/执行器设备处理事件
        /// </summary>
        public const string Event_HandleCommand = "Event_HandleCommand";

        /// <summary>
        /// 显示屏
        /// </summary>
        public const string Event_Display = "Event_Display";

        /// <summary>
        /// 微服务器
        /// </summary>

        public const string Device_Command = "Device_Command";
        public const string Device_Test = "Device_Test";
        public const string Device_Gateway_NetWorkMacList = "Device_Gateway_NetWorkMacList";

        /// <summary>
        /// 网关心跳存活
        /// </summary>
        public const string Device_Gateway_IntervalLive = "Device_Gateway_IntervalLive";

        /// <summary>
        /// 网关时间
        /// </summary>
        public const string Device_Gateway_Time = "Device_Gateway_Time";
        /// <summary>
        /// 网关升级
        /// </summary>
        public const string Device_Gateway_SoftWareUpgrade = "Device_Gateway_SoftWareUpgrade";

        /// <summary>
        /// 网关mq信息
        /// </summary>
        public const string Device_Gateway_MQTTInfo = "Device_Gateway_MQTTInfo";
        /// <summary>
        /// 网关更新配置
        /// </summary>

        public const string Device_Gateway_UpdateConfig_Value = "Device_Gateway_UpdateConfig_Value";

        /// <summary>
        /// 设备控制
        /// </summary>

        public const string API_DeviceControl = "API_DeviceControl";

        /// <summary>
        /// 远程维护
        /// </summary>

        public const string SendToRemoteClient = "SendToRemoteClient";
        public const string SendToRemoteManage = "SendToRemoteManage";
    }
}
